package b4.widget.main
{
	import b4.net.*;
	import b4.widget.basic.*;
	import b4.widget.humanBeing.*;
	
	import flash.events.MouseEvent;

	public class HumanBeingIcon extends BasicIcon
	{
		public function HumanBeingIcon()
		{
			var HBIcon:Class = ResourceManager.getInstance().getClassByName("HumanBeingIcon");
			super(HBIcon);
			
			this.addEventListener(MouseEvent.CLICK, onMouseClick);
		}
		
		private function onMouseClick(event:MouseEvent):void
		{
			var hbDialog:HumanBeingDialog = HumanBeingDialog.getInstance();
			hbDialog.x = -280;
			hbDialog.y = -240;
			WidgetManager.getInstance().popOut([hbDialog]);
		}
		
	}
}